package Si.Assign1.Model;

import java.io.Serializable;
import java.sql.Clob;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.sun.jmx.snmp.Timestamp;


public class Comments 
{
	public Comments(){}

	/*
	 * Properties
	 */
	
	/*
	 * Set and get id
	 */
	public int getId()
	{	return id;   }
	public void setId(int id)
	{   this.id = id;  }

	/*
	 * Set and get created
	 */
	public Timestamp getCreated()
	{   return created;  }
	public void setCreated(Timestamp created)
	{   this.created = created;  }
	
	/*
	 * Set and get title
	 */
	public String getTitle()
	{	return title;    }
	public void setTitle(String title)
	{   this.title = title;  }
	
	/*
	 * Set and get description
	 */
	public Clob getDescription()
	{	return description;  }
	public void setDescription(Clob description)
	{   this.description = description;  }
	
	/*
	 * Set and get product_id
	 */
	public int getProductId()
	{   return productId;   }
	public void setProductId(int productId)
	{   this.productId = productId;  }
	
	/*
	 * Set and get customer_id
	 */
	public int getCustomerId()
	{   return customerId;   }
	public void setCustomerId(int customerId)
	{   this.customerId = customerId;  }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Basic(optional=false)
	@Column(name="id", nullable=false)
	private int id;
	@Column(name="created", nullable=false)
	private Timestamp created;
	@Column(name="title", length = 3990, nullable=true)
	private String title;
	@Column(name="description", length = 10737418, nullable=false)
	private Clob description;
	@Column(name="customer_id", nullable=false)
	private int customerId;
	@Column(name="product_id", nullable=false)
	private int productId;
	
}
